package com.example.aop.controller;

import com.example.aop.annotation.Module;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Module(name = "module1", operation = "test")
    @GetMapping("test")
    public String test() {
//        int i = 1 / 0;
        return "test";
    }

    @GetMapping("test2")
    public String test2() {
        return "test2";
    }

}
